home *** CD-ROM | disk | FTP | other *** search
/ Total Network Tools 2002 / NextStepPublishing-TotalNetworkTools2002-Win95.iso / Archive / Misc Servers / Zope.exe / DTML-SQLVAR.STX < prev    next >
Encoding:
Text File  |  2000-10-31  |  1013 b   |  43 lines

  1. sqlvar: Inserts SQL variables
  2.  
  3.     The 'sqlvar' tag safely inserts variables into SQL code. This tag
  4.     is used in SQL Methods.
  5.  
  6.   Syntax
  7.  
  8.     'sqlvar' tag syntax::
  9.  
  10.       <dtml-sqlvar Variable|expr="VariableExpression">
  11.  
  12.     The 'sqlvar' tag is a singleton. Like the 'var' tag, the 'sqlvar'
  13.     tag looks up a variable and inserts it. Unlike the var tag, the
  14.     formatting options are tailored for SQL code.
  15.  
  16.   Attributes
  17.  
  18.     type=string -- The type of the variable. Valid types include:
  19.     'string', 'int', 'float' and 'nb'. 'nb' means non-blank
  20.     string. The type attribute is required and is used to properly
  21.     escape inserted variable.
  22.  
  23.     optional=boolean -- If true and the variable is null or
  24.     non-existent, then nothing is inserted.
  25.  
  26.   Examples
  27.  
  28.     Basic usage::
  29.  
  30.       select * from employees 
  31.         where name=<dtml-sqlvar name type="string">
  32.  
  33.     This SQL quotes the 'name' string variable.
  34.  
  35.   See Also
  36.  
  37.     "sqltest tag":dtml-sqltest.stx
  38.  
  39.  
  40.  
  41.  
  42.  
  43.